import tushare as ts
# 设置 token
token = 'c508869365fce05610e2cf264637f0473691e38fb80b3b21163bd150'
pro = ts.pro_api(token) # 初始化 pro 接口

df = pro.stock_basic(exchange='', list_status='L')
print(df.head())